package com.clwl.supervise.superviseapp.mapper.risk;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.clwl.supervise.superviseapp.entity.risk.JgDynamicStandard;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface JgDynamicStandardMapper extends BaseMapper<JgDynamicStandard> {


    List<JgDynamicStandard> selectStandardList(@Param("templateId") String templateId,@Param("supProcess") String supProcess, @Param("companyTypeId") Long companyTypeId);

    JgDynamicStandard selectByTemplateIdAndStandardIdAndDynamicScoringId(@Param("templateId") Long templateId, @Param("standardId") Long standardId, @Param("dynamicScoringId") Long dynamicScoringId);

    List<JgDynamicStandard> selectByDynamicCheckId(@Param("dynamicScoringId") Long dynamicScoringId);

    List<Map<String, Object>> selectMapByDynamicCheckId(@Param("dynamicScoringId") Long dynamicScoringId);

    List<JgDynamicStandard> selectByDynamicScoringId( @Param("dynamicScoringId") Long dynamicScoringId);

    int batchInsert(@Param("list") List<JgDynamicStandard> batchInsertStandards);

    int batchUpdate(@Param("list") List<JgDynamicStandard> batchUpdateStandards);
}